
package service;

import utils.DtoToBeanUtils;

import com.gitee.sunchenbin.mybatis.actable.manager.common.BaseCRUDManager;
import com.gitee.sunchenbin.mybatis.actable.manager.common.BaseCRUDManagerImpl;

import Quotation.Quotation;
import bean.QuotationBean;

/** 
 * @author yanchuanfeng
 * @version 创建时间：2022年3月1日 下午2:29:35 
 *  
 */

public class QuotationServiceImpl implements QuotationService{
	
	@Override
	public void insertQutotation(QuotationBean quotation) {
		BaseCRUDManager baseDao = new BaseCRUDManagerImpl();
		baseDao.insert(quotation);
	}

	@Override
	public void insertQutotation(Quotation quotation) {
		BaseCRUDManager baseDao = new BaseCRUDManagerImpl();
		baseDao.insert(DtoToBeanUtils.quotationToBean(quotation));
		
	}

}
